// 云函数入口文件
const cloud = require('wx-server-sdk')


cloud.init({
  env:'gra-pro-3gx5rs4vc3bc9864'
})

const db = cloud.database()


// 云函数入口函数
exports.main = async (event, context) => {
  const data = await db.collection('garbage_sort').get()
  return data.data[0].Garbage_data
}